Skip to content

Investigations reproduce past caches, fixes are claimed only on the real output, and open objections lead the description - #476

Merged
nambok merged 1 commit into
mainfrom
agent-verification-honesty
Nov 5, 2026
Merged

nambok merged 1 commit into
mainfrom
agent-verification-honesty

Conversation

@nambok

@nambok nambok commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

An investigation of "the record is in the index but not on the page" stopped at "healthy at every layer" and claimed a fix nobody checked on the real output. This adds the general lessons to every install: reproduce past caches before tracing, prove a fix on the real response or page or call it unproven, keep credentials out of tool output, and name open reviewer objections at the top of the description.

Changes

Planner, missing-or-wrong-data guidance (fix_location.rs, extends the section from #473)

  • Reproduce first with a cache-busting query parameter and confirm a cache miss.
  • Every layer healthy while the person still can't see the record means the trace is incomplete. Run the client's exact query, remove one filter at a time, and diff against a similar record that shows.
  • Check the time zone of both sides of every date comparison.
  • Measure the blast radius and fix every page, query or path that shares the filter.
  • A fix is proven only on the real API response or page; until then it is unproven, with the exact check named.
  • Never print or fetch credentials to answer a question; if one reaches a tool's output, lead with "rotate this credential".
  • PLANNER_VERSION bumped so cached plans are rebuilt.

Coder rules (proof.rs CODER_RULES)

  • "Fixed" means seen fixed in the real output. An unproven fix goes on an - Unconfirmed [external:...] line with the check a person should run, so it lands in Open items.
  • The same credentials rule, with "Rotate this credential" first in the summary.

PR description (pr.rs SHAPE_RULES, used by both the first write and every rewrite)

  • Verification claims the change works only where the real output was checked; otherwise it says Unproven and names the check.

Open reviewer objections, in code (completeness.rs, pr.rs::refresh_description)

  • New CoderHelm-owned section <!-- coderhelm:objections -->, put above everything else in the description.
  • Each rewrite of the description reads the PR's reviews (review_actions::fetch_approvals) and lists every reviewer whose latest verdict is still a request for changes (logins in backticks, so nobody is pinged). The section is removed once nobody objects. If the review list can't be read, the section stays as it was.

Secrets: prompt only. Live data-source output is already redacted at the source (common::live::redact), and the coder has no general shell, so a code-level detector would add little.

Verification

  • cargo fmt --all --check: clean.
  • cargo clippy --workspace --all-targets -- -D warnings: clean.
  • cargo test -p worker: 1221 passed, 0 failed (after rebasing onto Cut model spend: fewer and smaller reviews, cached prefixes, resumed retries, capped fix rounds #477).
  • New tests: an_open_reviewer_objection_goes_first_and_leaves_when_settled checks the section order, that the section survives a rewrite, and that it is removed once objections are settled. verification_claims_only_what_the_real_output_showed checks the new shape rule. The existing guidance and rules tests now also check each new phrase.
  • Unproven: the objection section on a live PR. To check it, request changes on a CoderHelm PR, push a review fix, and confirm the note appears at the top of the description; approve, push again, and confirm the note is gone.

…eal output, and open objections lead the description

Missing-or-wrong-data investigations now reproduce first past every cache,
treat "healthy at every layer" while the person still can't see the record as
an incomplete trace, run the client's exact query and drop one filter at a
time, diff against a similar record that shows, check the time zone of both
sides of every date comparison, and fix every path that shares the defect.

A fix counts as proven only when the real API response or page shows it; a
matching filter or a passing test is not that. The coder records an unproven
fix as an Unconfirmed line with the exact check a person should run, and the
PR description's Verification section says Unproven the same way.

The coder and planner never print or fetch credentials to answer a question,
and lead their report with "rotate this credential" if one reaches a tool's
output.

When a pull request's description is rewritten, reviewers whose latest
verdict still requests changes are named at the top of it, and the note goes
once nobody objects. An unreadable review list leaves the note as it was.
@nambok
nambok force-pushed the agent-verification-honesty branch from 843b228 to c03769d Compare November 5, 2026 00:25
@nambok
nambok merged commit 39a35a8 into main Nov 5, 2026
10 checks passed
@nambok
nambok deleted the agent-verification-honesty branch November 5, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant